package com.member.shop.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.member.common.annotation.Excel;
import com.member.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 等级变动记录对象 sys_biz_grade_log
 *
 * @author wangxin
 * @date 2024-06-13
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_biz_grade_log")
public class SysBizGradeLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 之前等级id
     */
    @Excel(name = "之前等级id")
    private Long gradeIdOld;

    /**
     * 之前等级名称
     */
    @Excel(name = "之前等级名称")
    private String gradeNameOld;

    /**
     * 新等级id
     */
    @Excel(name = "新等级id")
    private Long gradeIdNew;

    /**
     * 新等级名称
     */
    @Excel(name = "新等级名称")
    private String gradeNameNew;

    @TableField(exist = false)
    private String fullName;

    @TableField(exist = false)
    private String userPhone;

}
